home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 9
/
cdrt09.iso
/
mac
/
wrath demo
/
Wrath 50
/
Shared.Dir
/
01396_Script_1396
< prev
next >
Wrap
Text File
|
1995-01-13
|
10KB
|
218 lines
-- ò
on SaveGame
global list23c, tune33a, blox43a
global SaveMovie, SavePath
global invList, inv1, inv2, inv3, inv4, invCurrent, jumpFrame
global SaveFrame, mode, hScore, currentGems, currentScore
global invWind, invBank, invBanksAll
global cont, saveGlobal
global firstOr, orCount, o1a, o3a, branch5a, lever5a, fulcrum5a, o5a
global fulcrum11c5a, fulcrum61a5a, gotSword5a, pray6a, snake6a, Peddler6a, o6a
global youngWom7a, oldWom7a, firstTalk7a, firstOldWom7a, necklace7a, o7a, o7a2
global guys9a, branch9a, o9a, hit10a, o10a, pond11a, o11a, avalanche11c, gem11c
global rock11c, o11c, torchGuy12a, dark12a, o12a, torchGuy14a, hit14a, heads14a
global tHeads14a, o14a, o14a2, o14b, Hera14c, o14c, Peddler15a, rap15a, pedPay15a
global o15a, seedbag16a, seedmen16a, bagSee16a, fight16a, o16a, o16a2, o16b
global o16c, o16c2, o16c3, o17a, hit18b, door18b, o18b, vat18c, oars18c, gem18c, o18c
global upTree19b, downTree19b, o19b, Sciron20a, o20a, across20b, o20b, o20c
global Shade20g, coin20g, o20i, first20j, sledge20j, o20j, o21a, firstTalk23a, King23a
global Queen23a, kingWait23a, o23a, o23a2, first23b, hit23b, gotSword23b
global oneRock23b, twoRock23b, threeRock23b, fourRock23b, fiveRock23b, firstBreak23b
global secondBreak23b, thirdBreak23b, o23b, o23c, lastQt23b, first24a, o24a
global bees26a, o26a, offer27a, o27a, o27a2, o27c, at28a, gem28a, dest28a, play28a
global pilot28a, o28a, o28a2, o28a4, o29a, fly29a, tack30a, crash30a, Prow30a, o30a
global useWax31a, o31a, wine32a, o32a, die33a, do33a, o33a, o33a2, o33b, o34a
global gem35a, firstTalk35a, talk35a, o35a, break35b, o35b, cave35b, drunk38a, o38a
global Peddler38c, rap38c, gem38c, o38c, o39a, in39a, o42a, got43a, o43a
global man44a, skip44a, o44a, Sis45a, rock45a, o45a, slab45b, o45b, Herc46a, o46a
global Pers46b, o46b, talk46c, staff46c, o46c, light47a, o47a, Orpheus48a, o48a
global Theseus49a, o49a, Cerb50a, o50a, atm50b, o50b, slab50c, o50c, o52a, first53a
global hisClub53a, done53a, o53a, first56a, at56a, o56a, first57a, o57a, o59a, helmet60a
global die60a, eye60a, o60a, gem60b, o60b, bridle60e, o60e, rock61a, wine61a, ointment61a
global chart61a, gem61a, o61a, o61a2, swim65a, o65a, talk66a, o66a, stix66b, o66b
global bird66d, vase66d, o66d, o66e, candle67a, o67a, door68a, o68a, leap68b, skip68b
global o68b, vases68c, o68c, Ariadne69a, talk69a, rude69a, o69a, vases70a, o70a, o70b
global Dione70d, o70d, o71a, at74a, door74a, o74a, o74b, Atlas76a, o76a, Peg78a, o78a
global o78b, sandals78d, o78d, blast81a, o81a, Pan83a, o83a, o83b, Ped84a, o84a
global o85a, reeds85c, string85c, o85c, Argus86a, o86a, Caeneus87a, o87a, Hera87b
global o87b, o87c, o88a, o89a, hit90a, lab90a, gotTack30a, o90a, doom30a, o68a2, add28a, razz76a
global noGem32a, eat89a, altGlobal, playFrom, atOr, onOr, hintCount, invOff, Bri, end0
cursor 4
doSound "06AA02"
set SaveFrame to the frame
set SaveMovie to the movie
set SavePath to the PathName
repeat with c = 1 to the number of items in saveGlobal
put return&value(item c of saveGlobal) after tempSave
end repeat
delete line 1 of tempSave
set savedFile = FileIO(mNew,"?Write","Wrath of the Gods 1")
if not objectP(savedFile) then
set theProblem = string(savedFile)
if theProblem = -43 then
cursor 200
cursor 0
updateStage
exit
else
alert "Sorry, save did not work. Be sure to save to an unlocked volume."
cursor 200
cursor 0
updateStage
exit
end if
end if
put "* Wrath of the Gods Saved Game Aardvark"&return before tempSave
savedFile(mWriteString,string(tempSave))
savedFile(mSetFinderInfo, "TEXT","LUMI")
savedFile(mDispose)
--
on LoadGame
global list23c, tune33a, blox43a
global SaveMovie, SavePath
global invList, inv1, inv2, inv3, inv4, invCurrent, jumpFrame
global SaveFrame, mode, hScore, currentGems, currentScore
global invWind, invBank, invBanksAll
global cont, saveGlobal
global firstOr, orCount, o1a, o3a, branch5a, lever5a, fulcrum5a, o5a
global fulcrum11c5a, fulcrum61a5a, gotSword5a, pray6a, snake6a, Peddler6a, o6a
global youngWom7a, oldWom7a, firstTalk7a, firstOldWom7a, necklace7a, o7a, o7a2
global guys9a, branch9a, o9a, hit10a, o10a, pond11a, o11a, avalanche11c, gem11c
global rock11c, o11c, torchGuy12a, dark12a, o12a, torchGuy14a, hit14a, heads14a
global tHeads14a, o14a, o14a2, o14b, Hera14c, o14c, Peddler15a, rap15a, pedPay15a
global o15a, seedbag16a, seedmen16a, bagSee16a, fight16a, o16a, o16a2, o16b
global o16c, o16c2, o16c3, o17a, hit18b, door18b, o18b, vat18c, oars18c, gem18c, o18c
global upTree19b, downTree19b, o19b, Sciron20a, o20a, across20b, o20b, o20c
global Shade20g, coin20g, o20i, first20j, sledge20j, o20j, o21a, firstTalk23a, King23a
global Queen23a, kingWait23a, o23a, o23a2, first23b, hit23b, gotSword23b
global oneRock23b, twoRock23b, threeRock23b, fourRock23b, fiveRock23b, firstBreak23b
global secondBreak23b, thirdBreak23b, o23b, o23c, lastQt23b, first24a, o24a
global bees26a, o26a, offer27a, o27a, o27a2, o27c, at28a, gem28a, dest28a, play28a
global pilot28a, o28a, o28a2, o28a4, o29a, fly29a, tack30a, crash30a, Prow30a, o30a
global useWax31a, o31a, wine32a, o32a, die33a, do33a, o33a, o33a2, o33b, o34a
global gem35a, firstTalk35a, talk35a, o35a, break35b, o35b, cave35b, drunk38a, o38a
global Peddler38c, rap38c, gem38c, o38c, o39a, in39a, o42a, got43a, o43a
global man44a, skip44a, o44a, Sis45a, rock45a, o45a, slab45b, o45b, Herc46a, o46a
global Pers46b, o46b, talk46c, staff46c, o46c, light47a, o47a, Orpheus48a, o48a
global Theseus49a, o49a, Cerb50a, o50a, atm50b, o50b, slab50c, o50c, o52a, first53a
global hisClub53a, done53a, o53a, first56a, at56a, o56a, first57a, o57a, o59a, helmet60a
global die60a, eye60a, o60a, gem60b, o60b, bridle60e, o60e, rock61a, wine61a, ointment61a
global chart61a, gem61a, o61a, o61a2, swim65a, o65a, talk66a, o66a, stix66b, o66b
global bird66d, vase66d, o66d, o66e, candle67a, o67a, door68a, o68a, leap68b, skip68b
global o68b, vases68c, o68c, Ariadne69a, talk69a, rude69a, o69a, vases70a, o70a, o70b
global Dione70d, o70d, o71a, at74a, door74a, o74a, o74b, Atlas76a, o76a, Peg78a, o78a
global o78b, sandals78d, o78d, blast81a, o81a, Pan83a, o83a, o83b, Ped84a, o84a
global o85a, reeds85c, string85c, o85c, Argus86a, o86a, Caeneus87a, o87a, Hera87b
global o87b, o87c, o88a, o89a, hit90a, lab90a, gotTack30a, o90a, doom30a, o68a2, add28a, razz76a
global noGem32a, eat89a, altGlobal, playFrom, atOr, onOr, hintCount, invOff, Bri, end0
sound stop 1
sound stop 2
set savedFile = FileIO(mNew,"?Read","TEXT")
if not objectP(savedFile) then
set theProblem = string(savedFile)
if theProblem = -43 then
if mode = 5 or mode = 10 then
cursor 200
cursor 0
updateStage
exit
else
set mode = 0
if altglobal = 1 then
set the castNum of sprite 24 to the number of cast "control10"
else if altglobal = 2 then
set the castNum of sprite 24 to the number of cast "control20"
else
set the castNum of sprite 24 to the number of cast "control0"
end if
cursor 200
cursor 500
if invWind = 1 then
killInventory
end if
updateStage
continue
go value(playFrom)
exit
end if
else
alert "Sorry, load did not work."
if mode = 5 or mode = 10 then
cursor 200
cursor 0
updateStage
exit
else
set mode = 0
if altglobal = 1 then
set the castNum of sprite 24 to the number of cast "control10"
else if altglobal = 2 then
set the castNum of sprite 24 to the number of cast "control20"
else
set the castNum of sprite 24 to the number of cast "control0"
end if
cursor 200
cursor 500
if invWind = 1 then
killInventory
end if
updateStage
continue
go value(playFrom)
exit
end if
end if
end if
cursor 4
updateStage
put savedFile(mReadLine) into holdBin
if holdBin starts "* Wrath of the Gods Saved Game Aardvark" then
put savedFile(mReadFile) after holdBin
put saveGlobal into saveDispose
delete line 1 of holdBin
repeat with c = 1 to 12
put "set"&&(item 1 of saveDispose)&&"= " into doThing
put QUOTE&line 1 of holdBin"E after doThing
do string(doThing)
delete item 1 of saveDispose
delete line 1 of holdBin
end repeat
set loopCount = the number of items in saveDispose
repeat with c = 1 to loopCount
put "put value("&line 1 of holdBin&") into"&&(item 1 of saveDispose) into doThing
do string(doThing)
delete item 1 of saveDispose
delete line 1 of holdBin
end repeat
set the text of cast "scoreRap" to string(currentScore)
doSound "loadGame"
if (mode > 4) and (mode <> 10) then
go "setUp2" of movie savePath&saveMovie
else
go "setUp" of movie savePath&saveMovie
end if
savedFile(mDispose)
exit
else
alert "This is not a proper Wrath of the Gods Game File."
savedFile(mDispose)
if mode = 5 or mode = 10 then
cursor 200
cursor 0
updateStage
exit
else
set mode = 0
set the castNum of sprite 24 to the number of cast "control0"
cursor 200
cursor 500
if invWind = 1 then
killInventory
end if
updateStage
continue
go value(playFrom)
exit
end if
end if